const schedule = require('node-schedule');
const Signer =  require('./signer');

const scheduleCronstyle = ()=>{
  schedule.scheduleJob('0 10 8 * * 1-5',()=>{
      console.log('开始倒计时...')
      const countdown = Math.random() * 10 * 60 * 1000
      setTimeout(()=> {
        console.log('执行signer...')
        new Signer().start()
        console.log('执行完成')
      }, countdown)
  }); 
}

scheduleCronstyle();
console.log('定时任务已启动...')
